package com.itheima.entity;

import java.io.Serializable;

/**
 * @author TonyHao
 * @version v 1.0
 * @description
 * @data 2020/2/19
 */

public class Result implements Serializable{
    private boolean flag;
    private String message;
    private Object data;

    public Result() {}

    public Result(boolean flag, String message){
        super();
        this.flag = flag;
        this.message = message;
    }
    public Result(boolean flag, String message, Object data) {
        this.flag = flag;
        this.message = message;
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;

    }

    @Override
    public String toString() {
        return "Result{" +
                "flag=" + flag +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }


}
